package com.create;

public class Product {
	public abstractManProduct getFactor(String type){
		if ("head".equals(type)) {
			return new HeadFactory();
		}
		if ("body".equals(type)) {
			return new BodyFactory();
		}
		if ("foot".equals(type)) {
			return new FootFactory();
		}
		return null;
		
	}

}
